package One;
/*


封装学生对象:  属性为:     id   name  age gender    address;

功能有
        1   添加一个学生
        2   根据 id 号 查询学生的信息
        3   修改学生的信息（出了id不能修改 其他内容可以修改）
        4   查询所有的学生信息
        5   根据id 删除学生
 */

import sun.management.Agent;

public class Class {

    protected String id;

    protected String name;

    protected String age;

    protected String gender;

    protected String address;

    public Class() {}

    public Class(String id,String name,String age,String gender,String address){

        this.id=id;

        this.name=name;

        this.age=age;

        this.gender=gender;

        this.address=address;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
